package com.yn.xr.user.mode;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yn.xr.common.entity.BaseEntity;

/**
 * 登入日志表
 * @author HX1501527
 *
 */
@Entity
@Table(name = "t_user_login_log", catalog = "xrnetwork")
public class UserLoginLog extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 记录唯一标识
	 */
	private Integer id;
	
	/**
	 * 用户唯一标识
	 */
	private Long userId;
	
	/**
	 * 用户惠信号
	 */
	private String accName;
	
	/**
	 * 登陆终端
	 */
	private Short terminalsType;
	
	/**
	 * 登陆时间
	 */
	private Date loginTime;
	
	/**
	 * ip
	 */
	private String ip;
	
	/**
	 * 网卡地址
	 */
	private String macAddress;
	
	//结束时间
	private String topTime;
	//开始时间	
	private String lowTime;
	//姓名
	private String userName;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)	
	@Column(name = "id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userId")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "accName")
	public String getAccName() {
		return accName;
	}

	public void setAccName(String accName) {
		this.accName = accName;
	}

	@Column(name = "terminalsType")
	public Short getTerminalsType() {
		return terminalsType;
	}

	public void setTerminalsType(Short terminalsType) {
		this.terminalsType = terminalsType;
	}

	@Column(name = "loginTime")
	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	@Column(name = "ip")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "macAddress")
	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	@Transient
	public String getTopTime() {
		return topTime;
	}

	public void setTopTime(String topTime) {
		this.topTime = topTime;
	}

	@Transient
	public String getLowTime() {
		return lowTime;
	}

	public void setLowTime(String lowTime) {
		this.lowTime = lowTime;
	}

	@Transient
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	
}
